@extends('d.layout.index')
@section('con')
<div class="mws-panel grid_8">
    <div class="mws-panel-header">
        <span><i class="icon-table"></i> 底部导航栏浏览</span>
    </div>
    <div class="mws-panel-body no-padding">
        <div role="grid" class="dataTables_wrapper" id="DataTables_Table_1_wrapper">
        <div id="DataTables_Table_1_length" class="dataTables_length">
            
        </div>
      
        <table class="mws-datatable-fn mws-table dataTable" id="DataTables_Table_1" aria-describedby="DataTables_Table_1_info">
            <thead>
                <tr role="row">
                    <th class="sorting_asc" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 141px;" aria-sort="ascending" aria-label="Rendering engine: activate to sort column descending">类别名称</th>
                    <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 193px;" aria-label="Browser: activate to sort column ascending">ID</th>
                    <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 179px;" aria-label="Platform(s): activate to sort column ascending">父类ID</th>
                    <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 120px;" aria-label="Engine version: activate to sort column ascending">URL</th>
                    <th class="sorting" role="columnheader" tabindex="0" aria-controls="DataTables_Table_1" rowspan="1" colspan="1" style="width: 86px;" aria-label="CSS grade: activate to sort column ascending">操作</th>
                </tr>
            </thead>
            
            <tbody role="alert" aria-live="polite" aria-relevant="all">
                @foreach($list as $k=>$v) 
                    @if($k%2==0)
                    <tr class="even">  
                    @else
                    <tr class="odd">  
                    @endif  
                        <td class=" ">{{$v['name']}}</td>            
                        <td class=" ">{{$v['id']}}</td>
                        <td class=" ">{{App\Http\Controllers\admin\BottomNavController::translate($v['pid'])}}</td>
                        <td class=" " width='20%'>{{$v['url']}}</td>
                        <td class=" ">
                            <a href="/admin/bottomNav/delete/{{$v['id']}}" class='icon-trash' style="font-size:20px"></a>
                            &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                            <a href="/admin/bottomNav/edit/{{$v['id']}}" class='icon-tools' style="font-size:20px"></a>
                        </td>
                    </tr>
                @endforeach
            </tbody>
        </table>
        
        </div>
    </div>
</div>
@endsection